package com.imxplus.example01

import akka.actor.{ActorSystem, Props}
import com.imxplus.example01.Actors.BossActor
import com.imxplus.example01.Messages.Business

import scala.io.StdIn

object Demo02 extends App {
  val actorSystem = ActorSystem("company-system")
  println(s"The ActorSystem logLevel is ${actorSystem.settings.LogLevel}")
  val bossActor = actorSystem.actorOf(Props[BossActor], "boss")

  bossActor ! Business("Fitness industry has great prospects")

  println("Press <Enter> to quit.")
  StdIn.readLine()
  actorSystem.terminate()
}
